package ${servicePkg};

<#compress>
import ${entityPkg}.${entityClassName};
import cn.lycode.common.core.domain.model.SelectIdsDTO;
import cn.lycode.common.core.page.PageResult;
import java.util.List;
import ${dtoPkg}.${dtoListClassName};
import ${dtoPkg}.${dtoAddClassName};
import ${dtoPkg}.${dtoUpdateClassName};
import ${voPkg}.${voClassName};

<#if GeneratorInfo.hasImport == "1">
import org.springframework.web.multipart.MultipartFile;
</#if>
<#if GeneratorInfo.hasExport == "1">
import jakarta.servlet.http.HttpServletResponse;
</#if>

</#compress>


/**
 * ${tableComment} Service
 *
 * @since ${datetime}
 * @author ${author}
 */
public interface ${serviceClassName} {


    //******************自动生成基本增删改查、Excel导入导出*******************//
    PageResult<${voClassName}> listPage(${dtoListClassName} dto);

    int add(${dtoAddClassName} dto);

    ${voClassName} detail(Long id);

    int update(${dtoUpdateClassName} dto);

    void remove(SelectIdsDTO dto);

    <#if GeneratorInfo.hasImport == "1">
    void importExcel(MultipartFile file);
    </#if>

    <#if GeneratorInfo.hasExport == "1">
    void exportExcel(${dtoListClassName} dto, HttpServletResponse response);
    </#if>
}
